Skip to content

Comments

UN-3377 Add debug check for missing request metadata.#341

Merged
andreidenissov-cog merged 1 commit intomainfrom
ASD-UN-3377-debug-check01
Jul 31, 2025
Merged

UN-3377 Add debug check for missing request metadata.#341
andreidenissov-cog merged 1 commit intomainfrom
ASD-UN-3377-debug-check01

Conversation

@andreidenissov-cog
Copy link
Contributor

@andreidenissov-cog andreidenissov-cog commented Jul 30, 2025

This PR adds temporary debug logging for incoming requests with missing metadata.
We are hoping to find out where exactly a problem originates - on the client side
or maybe in the server internals.
Debug mode is controlled by SHOW_ABSENT_METADATA env variable which should be set to enable it.

@andreidenissov-cog andreidenissov-cog self-assigned this Jul 30, 2025
self.logger = HttpLogger(forwarded_request_metadata)
self.network_storage_dict: Dict[str, AgentNetworkStorage] = network_storage_dict
self.show_absent: bool = os.environ.get("SHOW_ABSENT_METADATA") is not None

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set the debug mode from env variable.

Copy link
Collaborator

@d1donlydfink d1donlydfink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever way to see where the fault lies.

@andreidenissov-cog andreidenissov-cog merged commit f6464c9 into main Jul 31, 2025
4 checks passed
@andreidenissov-cog andreidenissov-cog deleted the ASD-UN-3377-debug-check01 branch July 31, 2025 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants